home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 1.iso
/
ARGONET
/
PD
/
GRAPHICS
/
QUANT.ZIP
/
!Quantize
/
!Help
< prev
next >
Wrap
Text File
|
1997-02-17
|
6KB
|
214 lines
!Quantize
-----------
By R - Fred - W
for
FishNet Software
----------------------------------------------
Introduction:
----------------------------------------------
You've got a totally gorgeous 24 bit picture.
You want a 256 colour or 16 colour picture.
!ChangeFSI only remaps into the standard Acorn
palettes, & will only do "FSI" stippling (which
doesn't compress well) or none at all.
!Quantize is the answer.
(correction: "or it will be, when it's finished")
What it does is look at a 24-bit sprite, and
pick a nice palette of 256 or 16 colours to
remap it into.
Then it does the remap.
Basically, !Quantize is intended for two purposes:-
(1) Creation of game graphics:-
which involves remapping multiple 24-bit images into
a single RiscPC 256-colour palette with colour 0 unused.
(2) Creation of Webpage graphics:-
which involves making GIF graphics with as few colours
as possible with "simple" (ie, compressable) dithering.
As with most utility programs, this is being written coz
*I* want it. The fact that other people can use it is largely
a "bonus".
----------------------------------------------
How to make it work:-
----------------------------------------------
Run it by double clicking.
Click on the icon-bar icon for the options window.
Choose how many colours you want the output sprite/gif to have.
(2,4,8,16,32,64,128,or 256. Your choice!)
Choose the dithering type, masking type, & method.
Drag your input 24-bit sprite file to Quantize. (any window).
Hang around for a while. Quantize is NOT built for speed, but
it does at least run as a background task rather than hogging the
machine.
(Adjust-clicking on the icon-bar icon brings up a "log window",
which lets you know how things are going)
When the save icons come back, type in your leafname, & drag
either the sprite or the GIF to where you want it.
--------------------------
The "To be done" list:-
--------------------------
Input & Output:-
----------------
* Currently 24-bit sprites only. It WILL handle
256-colour (& less) input eventually!
* Currently only converts the 1st sprite in a file.
There will be stuff for multi-file & multi-sprite-per-file input
& output.
Possbily including animating Gifs.
Definitely including best-fit palette for multiple images.
* Better Mask handling
-& map mask to specific colour
-& map "mask COLOUR" to a specific colour for non-masked sprites
GIF, transparent GIF, & Interlaced GIF stuff
* Better RiscOs load/save
-Currently supports "load"/"save" from filer,
& save-to-app via <Wimp$Scrap>
-load-from-app via <Wimp$Scrap>, and ram-transfer are yet to be
implemented
Palettes:-
------------
* Note that it chooses full 24-bit palette entries, ie - the
output sprites'll look pretty naff in a 256-colour mode in
any case. Restriction to "Acorn 256-colour" colours may be added,
but I'm not viewing it as a priority.
* &I'm not 100% happy with the palette choice mechanism, either!
(it fails BADLY if the piccy's got one important colour that's
miles away from everything else - eg: cartoon with thin black
lines)
Of the two methods supplied (so far), "median" generally works best
for generating 256-colour sprs from 24-bit, & "maxdist" generally
chooses better colour sets for 16/32 colour output.
* There WILL be facilities to specify bits of palette yourself, by
"picking" them from the source sprite, or from a colour-picker
dialogue.
* Definable (& load/savable) palettes with:-
"Do not use" colours. (eg game "colour cycling" colours)
"Use but don't change" colours. (eg, game "used on every level" colours)
Dithering:-
-------------
* There's room for improvement in the dithering algorithm used.
* FSI dithering will be added as an option.
----------------------------------------------
Other FishNet product:
----------------------------------------------
...available from a PD library near you...
(Or from the FishNet web site - address below)
PUSHY - The box-pushing puzzle game. (Datafile Cat24,GA059,CD3)
FIRE - The big yellow wobbly thing in the fireplace,
presented as a (Risc-PC only) demo. (Datafile PDCD3)
PUSHY II - More box pushing, in 24-bit Hi-Res (Datafile GA059, Cat 32)
TYDIRIUM - The Risc-OS desktop game-map editing tool.
----------------------------------------------
Coming soon:
----------------------------------------------
QUANTIZE - you're looking at a (very) early version.
PUSHY II.V - The StrongArm compatable version with P1 & extra levels
(Actually, the "extra levels" version is looking increasingly unlikely.
Pushy V2.11 is SA compatable, includes Pushy 1, & is currently available)
TYDIRIUM - the "finished" version ;)
----------------------------------------------
Boring Legal Stuff:
----------------------------------------------
This program is FREEWARE
By which I mean...
Anyone can take a copy of it.
Anyone can give it to anyone else.
*** And you are encouraged to do so! ***
(****** NOT YET!!!! It ain't finished!!! ********)
They can even charge for the disk and the postage!
But I retain the copyright, ok?
---
If you mod the code, even just the !Run...
(a) Make a note here so's anyone who gets a copy from
then on knows about it.
(b) Let me know, so future versions (and future products) can
work without needing to be modded.
This software is provided 'as is'. Using it is entirely at
your own risk. If asked, I will deny ever having written
this software. Etc, Etc.
You must know the PD legal gubbins by now...
Don't go changing things and try to pass it off as your
own work. It's not big, or indeed clever.
---
Extra bit of legal gubbins necessary for this program to satisfy the
terms of Compuserve's royalty-free GIF license:-
The Graphics Interchange Format(c) is the Copyright property of
CompuServe Incorporated. GIF(sm) is a Service Mark property of
CompuServe Incorporated.
----------------------------------------------
And Finally:
----------------------------------------------
In case of...
Bugs,
Problems getting it to work on your system,
Praise,
Objective criticism,
Suitcases of banknotes,
Or just plain curiosity.
email: rfredw@argonet.co.uk
WWW: http://www.argonet.co.uk/users/rfredw/
or write to...
R Williams,
16, Bradwell Lane,
Cannock Wood,
Nr Rugeley,
Staffs
WS15 4RW